export type Configs = Partial<Shenjian.Configs>;
export type Site = Shenjian.Site;
export type Page = Shenjian.Page;

export type cbSite = (site: Site) => void;
export type cbSitePage = (site: Site, page: Page) => void;
export type cbPageSite = (page: Page, site: Site) => void;

export type cbPageStrSite = (
  page: Page,
  content: string,
  site: Site,
) => boolean;

export type cbAfterExtractField = (
  fieldName: string,
  data: string,
  page: Page,
  site: Site,
  index: number,
) => string | number;

export type cbAfterExtractPage = (page: Page, data: any, site: Site) => string;
